#include<iostream>
#include<string>
#include<sstream>
#include"../inc/cppjieba/Jieba.hpp"

const char* DICT_PATH = "../dict/jieba.dict.utf8";
const char* HMM_PATH = "../dict/hmm_model.utf8";
const char* USER_DICT_PATH = "../dict/user.dict.utf8";
const char* IDF_PATH = "../dict/idf.utf8";
const char* STOP_WORD_PATH = "../dict/stop_words.utf8";

int main(){
    cppjieba::Jieba jieba(DICT_PATH, HMM_PATH, USER_DICT_PATH, IDF_PATH, STOP_WORD_PATH);
    std::vector<std::string> words;
    std::string sentence = "我是中国人";

    jieba.Cut(sentence, words, true);

    for (const auto& word : words) {
        std::cout << word << " ";
    }
    std::cout << std::endl;

    return 0;
}





// int main()
// {
//     std::string test = "dsagacxz";
//     std::stringstream ss(test);
//     std::string line;
//     while(getline(ss,line)){
//         std::cout<<line<<std::endl;
//     }
//     return 0;
// }

// int main()
// {
//     std::string arr = "test hello";
//     std::size_t test = arr.find("tsadas");
//     std::cout<<test<<std::endl;
//     std::cout<<std::string::npos<<std::endl;

//     if(test == std::string::npos){
//         std::cout<<"success"<<std::endl;
//     }

//     return 0;
// }